<div id="nouveaux_membres">
    <div class="titre_home"> NOUVEAUX MEMBRES</div>
    <table width="100%">
        <?php for($i=0;$i<count($new_members);$i++):?>
            <?php
                $image = './doggy_avatar/images/' . $new_members[$i]['avatar'];
                if (file_exists($image)&&$new_members[$i]['avatar']!=null) {
                    $image = base_url() . 'doggy_avatar/images/'. $new_members[$i]['avatar'];
                } else {
                    $image = root_url('doggy-flirt') . './assets/noimage.gif';
            } 
            $date_patern = '%d/%m/%Y';
            $incrit = mdate($date_patern,$new_members[$i]['id']);
            $birthday=$new_members[$i]['birthday'];
            $now = time();
            $str = explode(',',timespan($birthday, $now));
            $age = $str[0].' '.$str[1];
            ?>
            <?php if($i%2==0):?>
            <tr>
            <?php endif;?>
                <td width="50%" valign="top">
                    <a href="<?php echo site_url('home/compte/'.$new_members[$i]['id'])?>"><img border="0" src="<?php echo $image;?>" width="80"/></a>
                    <div class="info_membres_home" align="left">
                        <ul>
                            <li><a href="<?php echo site_url('home/compte/'.$new_members[$i]['id'])?>"><span class="noun"><?php echo $new_members[$i]['display_name']?></span></a></li>
                            <li>Inscrit le : <?php echo $incrit;?></li>
                            <li>Race : <?php echo $new_members[$i]['race_name']?></li>
                            <li>Âge : <?php echo $age;?></li>
                        </ul>
                    </div>
                </td>
            <?php if($i%2==1):?>
            </tr>
            <?php endif;?>
            <?php endfor;?>
    </table> 
    <div align="center"><font color="#5d94c5" style="font-size: normal;"><?php if(isset($pagination)){echo $pagination;} ?></font></div>   
</div>
<!--END nouveaux_membres-->